﻿using System.Collections.ObjectModel;
namespace QDP.Platform.Silverlight.Controls
{
    public class TileGroupObject:ObservableObject
    {
        public TileGroupObject()
        {
            Children = new ObservableCollection<TileObject>();
            this.isExpanded = true;
        }
        public ObservableCollection<TileObject> Children { get; set; }

        private string caption;
        public string Caption
        {
            get { return caption; }
            set
            {
                if (caption != value)
                {
                    caption = value;
                    Notify("Caption");
                }
            }
        }

        private bool isExpanded;
        /// <summary>获取或设置导航项是否处于展开状态</summary>
        public bool IsExpanded
        {
            get { return isExpanded; }
            set
            {
                if (isExpanded != value)
                {
                    isExpanded = value;
                    Notify("IsExpanded");
                }
            }
        }
    }
}
